home *** CD-ROM | disk | FTP | other *** search
- Path: gecm.com!usenet
- From: Richard Paul Hanson <richard.hanson@gecm.com>
- Newsgroups: comp.lang.c
- Subject: Re: COLLEGE PROFESSORS! # 2/2
- Date: 17 Apr 1996 11:53:28 GMT
- Organization: GEC Marconi Avionics Limited
- Message-ID: <4l2m3o$oa6@gcsin3.geccs.gecm.com>
- References: <8BEC555.02C70031C4.uuout@sourcebbs.com>
- NNTP-Posting-Host: unknown77147.rochstr.gmav.gecm.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; I; 16bit)
-
- When I was at college, it was considered good engineering to have only one
- exit point for a routine - multiple exit points in a routine tend to make it
- harder to read. However, the way the 'IF' constructs are written I agree are
- wasteful: perhaps each successive 'IF' construct should be in the 'ELSE'
- clause of the preceding 'IF', as in your first example.
-
- By the way, neither of your two examples will work because you have not set
- StatusSwitch to 'BAD' in your 'IF' statements!
-
- Rich
-
- ------------------------------------------------------------------------------
- R. P. Hanson, Software Engineer and part time musician
- GEC Marconi Avionics Limited, Airport Works, Rochester, Kent, ENGLAND
- ------------------------------------------------------------------------------
- http://www.lookup.com/Homepages/78185/home.html
- ------------------------------------------------------------------------------
-
-
-